class SingletonLazy{
    private static SingletonLazy instance = null;
    private SingletonLazy(){}
    public synchronized static SingletonLazy getInstance(){
        if (instance ==null){
            instance = new SingletonLazy();
        }
        return instance;
    }
}
public class demo1 {
    public static void main(String[] args) {

    }
}
